package com.zhb.mybatis.dao;

import com.zhb.mybatis.beans.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: Mybatis
 * @description:
 * @author: rainboz
 * @create: 2019-09-16 18:58
 **/
public interface EmployeeMapperDynamicSQL {
    public List<Employee> getEmployeeByConditionIfWhere(Employee Condition);

    public List<Employee> getEmployeeByConditionTrim(Employee Condition);

    public void updateEmployeeByConditionSet(Employee Condition);

    public List<Employee> getEmployeeByConditionChoose(Employee Condition);

    public List<Employee> getEmployeeByIds(@Param("ids") List<Integer> ids);

    //    使用foreach完成批量增删改操作
    public void addEmps(@Param("emps") List<Employee> emps);

    public void deleteEmps(@Param("ids") List<Integer> ids);

    public void updateEmps(@Param("upemps") List<Employee> upemps);

}
